
package com.wolfheader.wolfgame.shiro;

import javax.servlet.http.HttpSession;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 授权令牌
 * 
 * @author 8615 Team
 * @version 1.0
 */
public class AuthenticationToken extends UsernamePasswordToken {

    /** serialVersionUID */
    private static final long serialVersionUID = 7368760471388159436L;

    /** 验证码 */
    private String captcha;

    /** 会话 */
    private HttpSession session;

    /**
     * 构造函数
     * 
     * @param username
     *            用户名
     * @param password
     *            密码
     * @param captcha
     *            验证码
     * @param rememberMe
     *            是否“记住我”
     * @param host
     *            客户端主机
     * @param session
     *            会话
     */
    public AuthenticationToken(String username, String password, String captcha, boolean rememberMe, String host,
            HttpSession session) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
        this.session = session;
    }

    public String getCaptcha() {
        return captcha;
    }
//
    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public HttpSession getSession() {
        return session;
    }

    public void setSession(HttpSession session) {
        this.session = session;
    }

}